package com.suda.service;

import com.github.pagehelper.PageInfo;
import com.suda.pojo.Vehicle;

import java.util.List;

/****
 * @Author:zhuyongjie
 * @Description:Vehicle业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface VehicleService {

    /***
     * Vehicle多条件分页查询
     * @param vehicle
     * @param page
     * @param size
     * @return
     */
    PageInfo<Vehicle> findPage(Vehicle vehicle, int page, int size);

    /***
     * Vehicle分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<Vehicle> findPage(int page, int size);

    /***
     * Vehicle多条件搜索方法
     * @param vehicle
     * @return
     */
    List<Vehicle> findList(Vehicle vehicle);

    /***
     * 删除Vehicle
     * @param id
     */
    void delete(String id);

    /***
     * 修改Vehicle数据
     * @param vehicle
     */
    void update(Vehicle vehicle);

    /***
     * 新增Vehicle
     * @param vehicle
     */
    void add(Vehicle vehicle);

    /**
     * 根据ID查询Vehicle
     * @param id
     * @return
     */
     Vehicle findById(String id);

    /***
     * 查询所有Vehicle
     * @return
     */
    List<Vehicle> findAll();
}
